<!DOCTYPE html>
<html>
<head>
	<title>测试IOS与JS之前的互调</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    全球权威

	<style type="text/css">
	  * {
	  	font-size: 40px;
	  }
	</style>
  <script type="text/javascript">

  var jsFunc = function() {
   
    <!-- 这里注视了一句代码  -->
    alert('Object-C调用JS的alertView'); 
  }
  
  var jsParamFunc = function(argument) {
    document.getElementById('jsParamFuncSpan').innerHTML
    = argument['name'];
  }
  
  </script>
  
</head>

<body>
  
<div style="margin-top: 100px">
	<h1>Test how to use objective-c call js</h1>
	<input type="button" value="Call ObjC system camera" onclick="OCModel.callSystemCamera()">
	<input type="button" value="Call ObjC system alert" onclick="OCModel.showAlertMsg('js里的参数1', 'js里的参数2')">
</div>

<div>
	<input type="button" value="Call ObjC func with JSON " onclick="OCModel.callWithDict({'service': 'UserRouteHandler', 'action':'pushIvew' , 'successCallback': '回调js','errorCallback': '失败回调js' })">
	<input type="button" value="Call ObjC func with JSON and ObjC call js func to pass args." onclick="OCModel.jsCallObjcAndObjcCallJsWithDict({'name': 'testname', 'age': 10, 'height': 170})">
</div>
<div>
  <a href="test1.html">Click to next page</a>
</div>

<div>
	<span id="jsParamFuncSpan" style="color: red; font-size: 50px;"></span>
</div>


</body>
</html>
